﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UsersModuleRights.aspx.cs"
    Inherits="SysManager_UsersModuleRights" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户权限设置</title>
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/btnsty.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery/jquery-1.8.1.min.js" type="text/javascript"></script>
    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <style>
        .content_div
        {
            width: 95%;
            height: 100%;
            position: relative;
            border-top: 1px solid #ccd6de;
            padding: 10px;
        }
        .content_div div
        {
            margin-right: 15px;
        }
        .only_table
        {
            border: 1px solid #d2d2d2;
            font-size: 12px;
            border-collapse: separate;
            border-spacing: 2px;
            border-color: gray;
            display: none;
        }
        .only_table th
        {
            border-left: 1px solid white;
            border-right: 1px solid #d2d2d2;
            height: 24px;
            line-height: 24px;
            padding: 0 4px;
            background: #e3e3e3;
            text-align: left;
            border-bottom: 1px solid #d2d2d2;
        }
        .only_table td
        {
            line-height: 24px;
        }
        .only_table td:hover
        {
            background: #d2d2d2;
        }
        .td_bg
        {
            background: #d2d2d2;
        }
        .datable
        {
            background-color: #9FD6FF;
            color: #333333;
            font-size: 13px;
            margin: 1px;
        }
        
        .datable tr
        {
            height: 20px;
        }
        
        .datable .lup
        {
            background-color: #C8E1FB;
            font-size: 13px;
            color: #014F8A;
        }
        
        .datable .lup th
        {
            border-top: solid 1px #FFFFFF;
            border-left: solid 1px #FFFFFF;
            font-weight: normal;
        }
        
        .datable .lupbai
        {
            background-color: #FFFFFF;
        }
        
        .datable .trnei
        {
            background-color: #F2F9FF;
        }
        
        .datable td
        {
            padding:3px;
            border-top: solid 1px #FFFFFF;
            border-top: solid 1px #FFFFFF;
        }
    </style>
    <script>
        $(function () {
            $(".datable td").live("click", function () {
                $(".datable td").removeClass("td_bg");
                $(this).addClass("td_bg");
            });
        });
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 96%; height: 100%;">
        <div class="rptTitle">
            <b>用户权限设置</b>
        </div>
        <div class="content_div">
            <div style="float: left; width: 160px; border: 1px solid #ccd6de; padding: 5px; height: 400px;">
                <table class="only_table" id="member_table" width="100%">
                    <thead>
                        <tr>
                            <th>
                                用户列表
                            </th>
                        </tr>
                    </thead>
                    <tbody id="member_list">
                        <tr>
                            <td>
                                梅浩
                            </td>
                        </tr>
                        <tr>
                            <td>
                                张三
                            </td>
                        </tr>
                    </tbody>
                </table>
                <span>用户列表：</span><br />
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="datable"
                    border="1" cellspacing="0" cellpadding="0"  Width="100%"
                    OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="用户名称">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" CommandArgument='<%# Eval("UserID")%>' runat="server"><%# Eval("UserName")%></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                    <RowStyle CssClass="lupbai" />
                    <HeaderStyle CssClass="lup" />
                    <AlternatingRowStyle CssClass="trnei" />
                </asp:GridView>
                <asp:HiddenField ID="hf_UserID" runat="server" />
                <%--                <div style=" width:180px; border: 2px solid #FFCC00;border-radius: 4px; padding:5px; margin:5px; position:fixed; margin-top:220px;">
                    <asp:Label ID="Label2" runat="server" Text="当前节点：无" Font-Bold="True"></asp:Label>
                </div>--%>
            </div>
            <div style="float: left; width: 220px; border: 1px solid #ccd6de; padding: 5px; height: 400px;">
                <span>模块列表：</span><br />
                <div id="Div1" class="tree_div">
                    <asp:TreeView ID="TreeView2" runat="server" BackColor="#DEE1E6" BorderColor="#DEE1E6"
                        BorderStyle="Solid" BorderWidth="1" Height="350px" ShowLines="True" OnSelectedNodeChanged="TreeView2_SelectedNodeChanged">
                        <HoverNodeStyle BackColor="#6699FF" />
                        <Nodes>
                            <asp:TreeNode Text="业务报表" Value="0001">
                                <asp:TreeNode Text="销一补一报表" Value="0002"></asp:TreeNode>
                            </asp:TreeNode>
                        </Nodes>
                        <SelectedNodeStyle BackColor="#3366FF" ForeColor="White" />
                    </asp:TreeView>
                </div>
                <div style="border: 2px solid #FFCC00; border-radius: 4px; padding: 5px; margin: 5px;">
                    <asp:Label ID="Label1" runat="server" Text="当前节点：无" Font-Bold="True"></asp:Label>
                </div>
            </div>
            <div style="float: left; width: 540px; border: 1px solid #ccd6de; padding: 5px; height: 400px;
                overflow: auto;">
                <div style="border: 1px solid #ccd6de; padding: 10px;">
                    <span>操作权限：</span><br />
                    <asp:CheckBox ID="M_Browse" runat="server" Text="查看" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    <asp:CheckBox ID="M_Add" runat="server" Text="新增" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    <asp:CheckBox ID="M_Edit" runat="server" Text="编辑" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    <asp:CheckBox ID="M_Delete" runat="server" Text="删除" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    <asp:CheckBox ID="M_Export" runat="server" Text="导出" OnCheckedChanged="CheckBox1_CheckedChanged" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="SaveBtnChecked" class="button small medium-blue" runat="server"
                        OnClick="SaveBtnChecked_Click">保存修改</asp:LinkButton>
                </div>
                <div style="border: 1px solid #ccd6de; padding: 5px;">
                    <asp:GridView ID="GridView2" runat="server" BackColor="White" BorderColor="#3366CC"
                        BorderStyle="None" BorderWidth="1px" CellPadding="4" AutoGenerateColumns="False"
                        EmptyDataText="暂无数据" Width="700" ShowHeaderWhenEmpty="True" AllowPaging="True"
                        OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="20" OnRowCancelingEdit="GridView2_RowCancelingEdit"
                        OnRowEditing="GridView2_RowEditing" DataKeyNames="mu_id" OnRowUpdating="GridView2_RowUpdating"
                        OnRowDeleting="GridView2_RowDeleting">
                        <Columns>
                            <asp:BoundField DataField="lindx" HeaderText="序号">
                                <ItemStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="fieldname" HeaderText="数据字段">
                                <ItemStyle Width="80px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="fielddisplay" HeaderText="字段名称">
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="fieldwidth" HeaderText="字段宽度">
                                <ItemStyle Width="60px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="mu_visible" HeaderText="可视">
                                <ItemStyle Width="50px" />
                            </asp:BoundField>
                            <asp:CommandField ShowEditButton="True">
                                <ItemStyle Width="100px" />
                            </asp:CommandField>
                            <asp:CommandField ShowDeleteButton="True">
                                <ItemStyle Width="60px" />
                            </asp:CommandField>
                        </Columns>
                        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                        <HeaderStyle BackColor="#1f558a" Font-Bold="True" ForeColor="white" />
                        <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                        <RowStyle BackColor="White" ForeColor="#003399" />
                        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                        <SortedAscendingCellStyle BackColor="#EDF6F6" />
                        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                        <SortedDescendingCellStyle BackColor="#D6DFDF" />
                        <SortedDescendingHeaderStyle BackColor="#002876" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
